<template>
  <view class="classLayout pageBg">
    <customNavBar title="分类"></customNavBar>
    <view class="classify">
      <theme-item v-for="item in classfiyList" :key="item" :item="item"></theme-item>
    </view>
  </view>
</template>

<script setup>
import { apiGetClassfiy } from "/api/apis.js"
import {ref} from "vue"
const classfiyList = ref([])
const getClassfiy = async() =>{
  // console.log('ok');
  const res = await apiGetClassfiy({
    pageSize:15
  })
  classfiyList.value = res.data
  // console.log('classfiy',res);
}
getClassfiy()
</script>

<style lang="scss" scoped>
.classify {
  padding: 30rpx;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15rpx;
}
</style>
